import request from '@/utils/request'
// 第三方接入列表
export const exportList = (data: {}) => {
  return request({
    method: 'GET',
    url: '/scrm-api/console/customer/opensea/trilateral/list',
    params: data
  })
}
// 客户公海列表
export const clientSeas = (data: {}) => {
  return request({
    method: 'POST',
    url: 'scrm-api/console/customer/opensea/drop-down-list',
    data
  })
}
// 新建对接
export const newJoint = (data: any) => {
  return request({
    method: 'POST',
    url: '/scrm-api/console/customer/opensea/trilateral/creat',
    data
  })
}
// 获取对接详情
export const detail = (data: any) => {
  return request({
    method: 'GET',
    url: '/scrm-api/console/customer/opensea/trilateral/info',
    params: data
  })
}
// 编辑对接
export const editJoint = (data: any) => {
  return request({
    method: 'POST',
    url: '/scrm-api/console/customer/opensea/trilateral/update',
    data
  })
}
// 推送地址
export const pushList = () => {
  return request({
    method: 'GET',
    url: '/scrm-api/console/customer/opensea/trilateral/attr-list'
  })
}
// 删除
export const delJoint = (data: {}) => {
  return request({
    method: 'GET',
    url: '/scrm-api/console/customer/opensea/trilateral/del',
    params: data
  })
}
// 导入明细
export const expDetails = (data: any) => {
  return request({
    method: 'POST',
    url: '/scrm-api/console/customer/opensea/trilateral/detaile',
    data
  })
}
